import { isCheckProjectIsOpened } from "@/services/cpasRequest";


export async function getIsCheckProjectIsOpened(params: {
    projectBh?: string;
    zcbfid?: string[];
}) {
    try {
        const res = await isCheckProjectIsOpened(params);
        if (res.ok) {
            return Promise.resolve({
                data: res.data,
                success: true,
            });
        }
        return Promise.resolve({
            data: res.data,
            success: false,
        });
    } catch (error) {
        return Promise.resolve({
            data: 'catch,报错了',
            success: false,
        });
    }
}
